package yo.latyoo.hokage.skmr.configuration;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import yo.latyoo.hokage.skmr.thread.JobSchedulerThread;
import yo.latyoo.hokage.tools.consts.LogConst;

public class SchedulerConfiguration {
    private static final Logger logger = LoggerFactory.getLogger(SchedulerConfiguration.class);

    public void init()  {
        logger.info(LogConst.PREFIX + "hokage starting......");
        //RegistryThread.INSTANCE().start();
       // JobTriggerPoolThread.start();
        JobSchedulerThread.INSTANCE().start();
        //JobMabiThread.INSTANCE().start();
        logger.info(LogConst.PREFIX + "hokage start success......");
    }

    public void destroy() throws Exception {
        //RegistryThread.INSTANCE().stop();
        //JobTriggerPoolThread.stop();
        //JobSchedulerThread.INSTANCE().stop();
        //JobMabiThread.INSTANCE().stop();
    }
}
